package com.jie.gateway.property;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author jie
 * @version 1.0 2025-02-16
 */
@Data
@Component
public class GatewayProperty {

    /**
     * 需要限流的路径
     */
    @Value("${xie-cheng.api.limit.paths:#{null}}")
    private String[] apiRestrictPaths;

    /**
     * 需要做token校验的路径
     */
    @Value("${xie-cheng.token.paths:#{null}}")
    private String[] checkTokenPaths;
}
